package com.ck.ips.model.vo;

import com.ck.core.constant.ElasticsearchConstant;

/**
 * @description: 素材实时监播数据（部分）
 * @author: zhanglei
 * @date: 2019/5/23 14:39
 */
public class FileRealTimeDataVO {
    /**
     * 终端唯一编码
     */
    private String deviceCode;

    /**
     * 节目版本号
     */
    private String programVersion;

    /**
     * 素材名称
     */
    private String fileName;

    /**
     * 素材url
     */
    private String fileUrl;

    /**
     * 累计播放次数
     */
    private Long playNum;

    /**
     * 累计播放时长
     */
    private Long playDuration;

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getProgramVersion() {
        return programVersion;
    }

    public void setProgramVersion(String programVersion) {
        this.programVersion = programVersion;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public Long getPlayNum() {
        return playNum;
    }

    public void setPlayNum(Long playNum) {
        this.playNum = playNum;
    }

    public Long getPlayDuration() {
        return playDuration;
    }

    public void setPlayDuration(Long playDuration) {
        this.playDuration = playDuration;
    }

    /**
     * 拼接查询key
     * @return
     */
    public String getKey(){
        return this.programVersion + ElasticsearchConstant.SEPARATOR + this.fileName + ElasticsearchConstant.SEPARATOR + this.fileUrl;
    }
}
